public class Go {
    private int firstboardx,firstboardy;//起子
    private int lastboardx,lastboardy;//落子
    private int barrierx,barriery;//障碍

    public Go(int firstboardx, int firstboardy, int lastboardx, int lastboardy, int barrierx, int barriery) {
        this.firstboardx = firstboardx;
        this.firstboardy = firstboardy;
        this.lastboardx = lastboardx;
        this.lastboardy = lastboardy;
        this.barrierx = barrierx;
        this.barriery = barriery;
    }

    public Go() {
    }

    public int getFirstboardx() {
        return firstboardx;
    }

    public void setFirstboardx(int firstboardx) {
        this.firstboardx = firstboardx;
    }

    public int getFirstboardy() {
        return firstboardy;
    }

    public void setFirstboardy(int firstboardy) {
        this.firstboardy = firstboardy;
    }

    public int getLastboardx() {
        return lastboardx;
    }

    public void setLastboardx(int lastboardx) {
        this.lastboardx = lastboardx;
    }

    public int getLastboardy() {
        return lastboardy;
    }

    public void setLastboardy(int lastboardy) {
        this.lastboardy = lastboardy;
    }

    public int getBarrierx() {
        return barrierx;
    }

    public void setBarrierx(int barrierx) {
        this.barrierx = barrierx;
    }

    public int getBarriery() {
        return barriery;
    }

    public void setBarriery(int barriery) {
        this.barriery = barriery;
    }

    @Override
    public String toString() {
        return "Go{" +
                "firstboardx=" + firstboardx +
                ", firstboardy=" + firstboardy +
                ", lastboardx=" + lastboardx +
                ", lastboardy=" + lastboardy +
                ", barrierx=" + barrierx +
                ", barriery=" + barriery +
                '}';
    }
}
